package com.tect918.pojo;

import org.springframework.stereotype.Component;

/**
 * @author: 若若叶
 * @date: 2021/9/18 14:39 FileName: Teacher Description:
 */
@Component
public class Teacher {
  private Integer tid;
  private String tname;
  private Integer tage;
  private String address;

  public Teacher() {}

  public Teacher(Integer tid, String tname, Integer tage, String address) {
    this.tid = tid;
    this.tname = tname;
    this.tage = tage;
    this.address = address;
  }

  public Integer getTid() {
    return tid;
  }

  public void setTid(Integer tid) {
    this.tid = tid;
  }

  public String getTname() {
    return tname;
  }

  public void setTname(String tname) {
    this.tname = tname;
  }

  public Integer getTage() {
    return tage;
  }

  public void setTage(Integer tage) {
    this.tage = tage;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  @Override
  public String toString() {
    return "Teacher{"
        + "tid="
        + tid
        + ", tname='"
        + tname
        + '\''
        + ", tage="
        + tage
        + ", address='"
        + address
        + '\''
        + '}';
  }
}
